import QtQuick 2.0

RotateBase {
    id: base

    property real xAngle: 0
    property real yAngle: 0
    property real zAngle: 0
    property color gColor

    rotate.origin.x: width/2
    rotate.origin.y: height/2

    rAngle: xAngle
    rx: 1
    ry: 0
    rz: 0

    RotateBase{
        anchors.fill: parent
        rx: 0
        ry: 1
        rz: 0
        rAngle: yAngle
        rotate.origin.x: width/2
        rotate.origin.y: height/2

        RotateBase{
            anchors.fill: parent
            rx: 0
            ry: 0
            rz: 1
            rAngle: zAngle
            rotate.origin.x: width/2
            rotate.origin.y: height/2

            Text {
                id: name
                text: txt
                font.family: "微软雅黑"
                font.pixelSize: 22
                width: 52
                height: 52
                horizontalAlignment: Text.AlignHCenter
                verticalAlignment: Text.AlignVCenter
                renderType: Text.QtRendering
                font.bold: true
                color: gColor
                transform: Scale{
                    yScale: 1.2
                }
            }
        }
    }
}
